import axios from '@iframe/tools/axios/axios.js'

export function latest(params) {
    return axios.request({
        url: `/${import.meta.env.IFRAME_CONTEXT_PATH}/devices/power/day/latest`,
        method: 'get',
        params
    })
}
